<!--
 * @Author: MrLee
 * @Date: 2024-09-10 11:20:22
 * @LastEditors: MrLee
 * @LastEditTime: 2024-09-10 15:10:08
 * @Description: 请填写简介
-->
<template>
    <custom-navbar title="测试入口" :autoBack="true" leftIconColor="#303133" />
    <view class="px-40rpx mb-100rpx mt-100rpx" @click="change('customer')">
        <u-button text="用户端" color="linear-gradient(to right, rgb(66, 83, 216), rgb(213, 51, 186))"></u-button>
    </view>
    <view class="px-40rpx" @click="change('enterprise')">
    <u-button text="企业端" color="linear-gradient(to right, rgb(66, 83, 216), rgb(213, 51, 186))"></u-button>
   </view>
</template>
<script setup>
import {useUserStore} from '@/store/index'
const userStore = useUserStore()
    const change = (v) => {
        // userStore.$patch({
        //     role:v
        // })
        const { globalData } = getApp();
        globalData.clientType = v
         uni.switchTab({
            url: '/pages/tab/home/index',
        });
    }
</script>
